package com.su.kddq.mapper.courier;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.su.kddq.entity.courier.CourierOrder;
import com.su.kddq.entity.user.Address;
import com.su.kddq.entity.user.Order;
import com.su.kddq.entity.user.vo.CourierVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 取件员mapper
 * @author sx
 */
@Mapper
public interface CourierOrderMapper extends BaseMapper<CourierOrder> {
    /**
     * 订单列表查询
     * @param orderIds
     * @return
     */
    List<Order> orderListQuery(@Param("orderIds") List<String> orderIds);

    /**
     * 地址详情查询
     * @param aids
     * @return
     */
    List<Address> queryAddressById(@Param("aids") List<Integer> aids);

    /**
     * 查询取件员通过cid
     * @param orderId
     * @return
     */
    CourierVo queryCourierBycid(@Param("orderId") String orderId);

    /**
     * 查询有代送单
     * @param cid
     * @return
     */
    Integer queryIshasWaitOrder(@Param("cid") Integer cid);

    /**
     * 收益提现
     * @param cid
     * @return
     */
    List<CourierOrder> MoneyTxByCid(@Param("cid") String cid);
}
